class Hotel < ActiveRecord::Base
	has_many :lodgings
	#has_many :tour_groups, :through => :lodgings
  
  validates_presence_of :name, :message => "请输入酒店名称"
  validates_uniqueness_of :name, :message => "已经存在同名酒店"
end
